import json
from plistlib import dumps

dict={'name':"zhangshan", 'age':18, 'sex':"男"}
print(json.dumps(dict))
